import request from '@/utils/request'

// 查询商品编码（hscode）对应表列表
export function listCode(query) {
  return request({
    url: '/btGoods/hsCode/list',
    method: 'get',
    params: query
  })
}

// 查询商品编码（hscode）对应表详细
export function getCode(id) {
  return request({
    url: '/btGoods/hsCode/getInfo/' + id,
    method: 'get'
  })
}

// 新增商品编码（hscode）对应表
export function addCode(data) {
  return request({
    url: '/btGoods/hsCode/add',
    method: 'post',
    data: data
  })
}

// 修改商品编码（hscode）对应表
export function updateCode(data) {
  return request({
    url: '/btGoods/hsCode/edit',
    method: 'post',
    data: data
  })
}

// 删除商品编码（hscode）对应表
export function delCode(id) {
  return request({
    url: '/btGoods/hsCode/remove/' + id,
    method: 'get'
  })
}

// 导出商品编码（hscode）对应表
export function exportCode(query) {
  return request({
    url: '/btGoods/hsCode/export',
    method: 'get',
    params: query
  })
}